package com.foreknow.demo5;

import java.util.Scanner;

public class TestEmployee {
    public static void main(String[] args) {

            Employee e1 = new Employee();
            e1.setId("111");
            e1.setName("tom");
            e1.setDepartment("22");
            Employee e2 = new Employee();
            e2.setId("222");
            e2.setName("fender");
            e2.setDepartment("22");
        EmployeeManager employeeManager = new EmployeeManager();
            employeeManager.join(e1);
            employeeManager.join(e2);

            Employee[] a =employeeManager.query();
            for (int i = 0; i<a.length;i++){
                System.out.println(a[i].getId()+"-"+a[i].getName()+"-"+a[i].getDepartment());
            }
    }
}
